@extends('admin.admin.index')
@section('title','秒杀')
@section('weizhi','商品列表')
@section('con')
<div class="row">
@foreach($cate as $k=>$v)
  <div class="col-sm-10 col-md-4">
    <div class="thumbnail">
      <a href=""><img src="{{$v->myimg}}" style="height:250px"></a>
      <div class="caption">
      <?php 
      	$str = substr($v->description,0,150);
       ?>
        <p style="height: 40px;">@if($v->offcial == 0)<em style="color:#ed145b;">【官方授权】</em>@endif<?php echo $str; ?>...</p>
        <h3 style="font-size:20px;color:#ed145b;padding:10px 0 10px 0;"><em style="font-size:16px">¥</em><span>{{$v->price}}</span>&nbsp;<span style="font-size:16px;color:#929292;text-decoration: line-through;"><em>¥</em>{{$v->discount}}</span></h3>
		<p><a href="{{url('/admin/seckillglobal/delete',['id'=>$v->id])}}" class="btn btn-default" role="button">删除</a>&nbsp;<a href="" class="btn btn-default" role="button">修改</a>&nbsp;<a href="" class="btn btn-default" role="button">商品详情</a>&nbsp;@if($v->mustsee == 0)<a href="{{url('/admin/seckillglobal/muset',['id'=>$v->id])}}" class="btn btn-default" role="button">加入每日必看</a>@endif</p>
      </div>
    </div>
  </div>
@endforeach
</div>

@endsection